package com.che.libcommon.utils;

import com.blankj.utilcode.util.FileUtils;
import com.blankj.utilcode.util.SDCardUtils;
import java.io.File;

/**
 * Created by Administrator on 2017/3/2.
 */

public class Constant {

    //
    public static final String MHOMEFRAGMENT = "mHomeFragment";
    public static final String MFINDCARFRAGMENT = "mFindCarFragment";
    public static final String MNEWSFRAGMENT = "mNewsFragment";
    public static final String MMYFRAGMENT = "mMyFragment";


    public static final String CURRENTFIRSTSTARTDATE = "currentFirstStartDate";

    public static final int INVALID = -1;//无效


    public static final int REQUESTSUCCESS = 0x01;//网络请求成功


    /******************
     * 登录页面
     ************************/
    public static final String LOGINFILEPATH = "logininfo";// 登录成功后登录信息保存的路径
    public static final String PHONE = "phone";// 登录成功后保存的手机号

    /******************
     * 跳转到登录页面的tag
     ************************/
    public static final String JUMPLOGINTAG = "jumpLogintag";//
    public static final int LOGINOUT = 0x01;// 注销
    public static final int CARHEADWEBVIEW = 0x02;//CarHeadWebViewActivity
    public static final int MYFRAGMENT = 0x03;//


    // Image size
    public static final int USER_IMAGE_SIZE_WIDTH = 320;
    public static final int USER_IMAGE_SIZE_HEIGHT = 320;

    public static final int REQUEST_CODE_CROP = 0x05;
    public static final int REQUEST_CODE_ALBUM = 0x06;
    public static final int REQUEST_CODE_COMPELETE = 0x07;

    // Image path
    public static final String PATH_TEMP = "checheng" + File.separator;

    // 裁剪的
    public static final String IMAGE_CROP_NAME = "tmp_crop.jpg";
    public static final String IMAGE_CROP_PATH =  PATH_TEMP;
    public static final String IMAGE_CROP_FULL_NAME = IMAGE_CROP_PATH + IMAGE_CROP_NAME;
    //    public static final Uri IMAGE_CROP_URI = Uri.fromFile(new File(IMAGE_CROP_FULL_NAME));
    // 拍照的
    public static final String IMAGE_CAMERA_NAME = "tmp_camera.jpg";
    public static final String IMAGE_CAMERA_PATH =  PATH_TEMP;
    public static final String IMAGE_CAMERA_FULL_NAME = IMAGE_CAMERA_PATH + IMAGE_CAMERA_NAME;
//    public static final Uri IMAGE_CAMERA_URI = Uri.fromFile(new File(IMAGE_CAMERA_FULL_NAME));

//    // 压缩的图片
//    public static final String COMPRESS_IMAGE = "tmp_compress.jpg";


    //RecyclerView的方向
    public static final int VERTICAL = 0x01;//竖直方向
    public static final int HORIZONTAL = 0x02;// 水平方向

    //list加载每页默认显示的数量
    public static final int PAGESIZE = 10;//

    //车辆查询类型 * -1 不支持 0 未知 1 支持
    public static final int QUERY_NOSUPPORT = -1;//
    public static final int QUERY_UNKNOWN = 0;//
    public static final int QUERY_SUPPORT = 1;//

    //平台类型 WEB,WAP,ANDROID,IOS,WECHART
    public static final String PLATFORM = "ANDROID";//

    // 天气service的intent
    public static final String WEATHERSERVICEINTENT = "com.wswy.wzcx.aidl.action.AIDL_SERVICE";//

    /****************** 加载webView ************************/
    public static final String WEBVIEWTAG = "webViewTag";
    public static final int WEBVIEWURL = 0x01;// 用url加载webview
    public static final int WEBVIEWDATA = 0x02;// 用data加载webview


    /****************** Intent Tag ************************/
    public static final String CHECKILLEGALCODE = "checkillegalCode";//查违章返回验证码Tag


    /****************** 百度定位的3种状态 ************************/
    public static final String TOMAPTAG = "toMaptag";
    public static final int HIGH_INCIDENCE = 0x01;
    public static final int PARKING_SELETCED = 0x02;
    public static final int GAS_STATION = 0x03;
    public static final int REALTIMETRAFFIC = 0x04;

    /****************** 查违章的3种状态 ************************/
    public static final int CHECKILLEGALHASDATA = 0x01;
    public static final int CHECKILLEGALNODATA = 0x02;
    public static final int CHECKILLEGALFAIL = 0x03;

    /****************** 卡片的位置 ************************/
    public static final String CARDCURRENTPOSITON = "cardCurrentPositon";

    /****************** 跳转到查询结果的标识 ************************/
    public static final String TOCARDRESULTTAG = "toCardResultTag";
    public static final int HOMEADDCAR = 0x01;//首页面的添加车辆进入
    public static final int HOMEQUERYCAR = 0x02;//首页面的的查询进入
    public static final int MYGARAGECAR = 0x03;//我的车库进入

    /****************** 跳转到头条详情的标识 ************************/
    public static final String TOHEADDETAILSTAG = "toHeadDetailsTag";
    public static final int HEADDETAILS = 0x01;//头条详情进入
    public static final int MYCOLLEGE = 0x02;//我的收藏进入

    /****************** 分享的标识 ************************/
    public static final int NEWSSHARE = 0x01;
    public static final int NORMALSHARE = 0x02;

//    /****************** 跳转到免密码登陆的标识 ************************/
//    public static final String JUMPTOAUTHLOGINTAG = "jumpToAuthLoginTag";
//    public static final int FINISH = 0x01;
//    public static final int TOMAIN = 0x02;


    /****************** 消息item返回是否需要刷新 ************************/
    public static final String NEWSREFRESHHOME = "newsRefreshHome";
    public static final String NEWSREFRESHFIRST = "newsRefreshFirst";
    public static final String NEWSREFRESHSECOND = "newsRefreshSecond";
    public static final String NEWSREFRESHTHIRD = "newsRefreshThird";

    /****************** 违章结果下面提示的点击时间 ************************/
    public static final String ILLEGALRESULTCLOSELASTDATE = "illegalResultCloseLastDate";
}
